package com.iasku.iaskueleclass_phone;

import android.os.Parcel;
import android.os.Parcelable;

public class Status implements Parcelable {

    public int code;
    public String msg;

    public Status() {
    }

    public Status(int arg) {
        code = arg;
    }

    public Status(int arg, String msg) {
        this.code = arg;
        this.msg = msg;
    }

    public Status(ReturnData<?> data) {
        this.code = data.status;
        this.msg = data.msg;
    }

    public void parserFrom(ReturnData<?> data) {
        this.code = data.status;
        this.msg = data.msg;
    }

    @Override
    public int describeContents() {
        // TODO Auto-generated method stub
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        // TODO Auto-generated method stub

    }
}
